home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / CPPWIN10.ARJ / TEST.CPP < prev    next >
C/C++ Source or Header  |  1990-12-12  |  971b  |  44 lines

  1. /***
  2.     Test program to test the Comptech classes for Windows programming.
  3. Revisions:
  4. 10/22/90 KM Initial coding.
  5. ***/
  6.  
  7. #include    <windows.h>        // MS header
  8. #include    <stdlib.h>        // for various string
  9. #include    <stdio.h>        // and
  10. #include    <string.h>        // memory functions
  11.  
  12. #include "cappl.hpp"
  13. #include "cwind1.hpp"
  14.     
  15. CAppl *gAppl;            // Application class
  16.  
  17. /***
  18.     The main part of a Windows program is WinMain().
  19. ***/
  20. int PASCAL    WinMain(HANDLE hInst, HANDLE hPrev, LPSTR cmdln, int cmd)
  21. {
  22.     CWind1 *pWind;
  23.     int x;
  24.  
  25.         // Create the Topmost window.
  26.     pWind = new CWind1(hInst, hPrev);
  27.         // Create the application class
  28.     gAppl = new CAppl(hInst, hPrev, pWind->GetHWnd());
  29.         // Set Application icon
  30.     gAppl->SetAppIcon("PROGICON");
  31.         // Set Application menu
  32.     gAppl->SetAppMenu("APPMENU");
  33.         // Run the application
  34.     x = gAppl->Run();
  35.  
  36.         // Delete the application class    
  37.     delete gAppl;
  38.         // Delete the top window.
  39.     delete pWind;
  40.  
  41.     return x;
  42. }
  43.  
  44.